package org.grayrabbit.cloud.core;

public class Constants {
		
	public static final String NEW_LINE = "\n\r";	
		
	/*module name*/
	public static final String MODULE_MAIN = "server";
	public static final String MODULE_SESSION = "session";
	public static final String MODULE_MONITOR = "monitor";
	public static final String MODULE_DATA ="data";
	public static final String MODULE_BIZ = "biz";
	public static final String MODULE_PROXY = "proxy";
	public static final String MODULE_SCR = "script";
	public static final String MODULE_INTH = "intohotel";
	public static final String MODULE_WEB = "web";	
	public static final String MODULE_BANK = "bank";
	public static final String MODULE_SMSCENTER = "smscenter";
	
	/*module command*/
	public static final String MODULE_COMMAND_MODULE_REGISTER = "REGISTER";
	public static final String MODULE_COMMAND_MODULE_DESTROY = "DESTROY";
	
	public static final String MODULE_COMMAND_SESSION_LOGIN = "LOGIN";
	public static final String MODULE_COMMAND_SESSION_QUERY = "QUERY";
	
	public static final String MODULE_COMMAND_SYSTEM_SYSTEM = "SYSTEM";
	public static final String MODULE_COMMAND_SYSTEM_TICK = "TICK";
			
	public static final String MODULE_COMMAND_SVR_START = "START";
	public static final String MODULE_COMMAND_SVR_STOP = "STOP";
	public static final String MODULE_COMMAND_SVR_PAUSE = "PAUSE";
	
	public static final String MODULE_COMMAND_DATA_STATEMENT = "STATEMENT";
	public static final String MODULE_COMMAND_DATA_PROCEDURE = "PROCEDURE";
	
    public static final String MODULE_COMMAND_BIZ_BUSINESS ="BUSINESS";
    public static final String MODULE_COMMAND_BIZ_PROXY = "PROXY";
    public static final String MODULE_COMMAND_BIZ_SCRIPT ="SCRIPT";
    public static final String MODULE_COMMAND_BIZ_SPRING ="SPRING";    
    public static final String MODULE_COMMAND_BIZ_BANK ="BANK";
    
	/*condition*/
	public static final String CONDITION_LOGIN = "LOGIN";	
	
	/*ms*/
	public static final int SERVER_DATABASE_LONG_WAIT_INTERVAL = 120000;
	public static final int SERVER_DATABASE_SHORT_WAIT_INTERVAL = 60000;
	
	public static final int SERVER_COMMAND_LONG_WAIT_INTERVAL = 30000;
	public static final int SERVER_COMMAND_SHORT_WAIT_INTERVAL = 10000;
	
	public static final int SERVER_SOCKET_LONG_WAIT_INTERVAL = 1000;
	public static final int SERVER_SOCKET_SHORT_WAIT_INTERVAL = 500;
	
	public static String getVersion(){
		return "服务器版本:V1.1;支撑框架版本:V1.1";
	}
}